<div class="bus_user">
	<div class="nav">
        <a href="#personal/points">
            <div class="nav-li">积分规则</div>
        </a>
        <a href="#personal/shoppinguide">
            <div class="nav-li">员工提成</div>
        </a>
        <a href="#personal/bina">
            <div class="nav-li">分销提成</div>
        </a>
		<div class="nav-li focus">账户提现</div>
	</div>

	<hr />

	<div class="box">
		<table class="paper-table">
			<thead>
                <td style="width: 8%;"></td>
                <td style="width: 17%;">商家名</td>
				<td >已提现的金额</td>
				<td >已使用的金额</td>
				<td >可用额度</td>
				<td >操作</td>
			</thead>
			{{#each $Cache.personal.bus_user.all}}
			<tr>
                <td>
                    <a target="_blank" href="{{bus.url}}">
                        <div class="logo">
                            <img bind-src="{{bus.info.logo_url&&(bus.info.logo_url+'?imageView/1/w/50/h/50')||'/images/logo.jpg'}}" />
                        </div>
                    </a>
                </td>
                <td>
                    <a target="_blank" href="{{bus.url}}">
                        <div class="storename">{{bus.info.title}}</div>
                    </a>
                </td>
				<td>{{#Fixed money_to_cash}}</td>
				<td>{{#Fixed money_used}}</td>
				<td>
				{{#Fixed money}}
				{{#if state===$Top.config.BUS_USER_STATE.申请兑换中}}
				（申请兑换中的额度：{{#Fixed money_apply}}）
				{{/if}}
				</td>
				<td>
				{{#if state===$Top.config.BUS_USER_STATE.未申请兑换}}
					{{#if !money}}
					<div class="info">无余额，无法申请</div>
					{{#else}}
					<button event-click="{{'$Top.$Event.personal.bus_user.未申请兑换_to_申请兑换中'}}">申请红利兑现</button>
					{{/if}}
				{{/if}}
				{{#if state===$Top.config.BUS_USER_STATE.申请兑换中}}
					<div class="info">申请已发送，等待商家发款</div>
				{{/if}}
				{{#if state===$Top.config.BUS_USER_STATE.商家已经打款}}
					<div class="info">商家确认发款</div>
					<button event-click="{{'$Top.$Event.personal.bus_user.商家已经打款_to_用户确认收款'}}">确认到帐</button>
				{{/if}}
				</td>
			</tr>
			{{/each}}
		</table>
	</div>

</div>
<style>	
.bus_user .paper-table td{
		text-align: center;
}
</style>
